package com.li.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: lyh
 * @Date: 2022/10/29
 * @Time: 10:55
 * @Description:
 * 自定义异常  需要手抛throw
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MyException extends RuntimeException{

    private Integer code;

    private String message;
}
